← Back to issue list

"Environment validation failed for part 'xsv': 'cargo' not found" with `base: core22`

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1990950
Type
issue
State
open
Author
~saviq
Labels
Created
2022-09-27 09:49:14.212471+00:00
Updated
2023-08-16 17:43:00.832813+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

1. git clone https://github.com/snapcraft-docs/xsv.git 2. cd xsv 3. sed -i 's/base:.*/base: core22/' snapcraft.yaml 4. snapcraft Launching instance... Environment validation failed for part 'xsv': 'cargo' not found and part 'xsv' does not depend on a part named 'rust-deps' that would satisfy the dependency. Full execution log: '/tmp/snapcraft.log' Traceback (most recent call last): File "/snap/snapcraft/8187/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 448, in _run_in_provider instance.execute_run(cmd, check=True, cwd=output_dir) File "/snap/snapcraft/8187/lib/python3.8/site-packages/craft_providers/lxd/lxd_instance.py", line 289, in execute_run return self.lxc.exec( File "/snap/snapcraft/8187/lib/python3.8/site-packages/craft_providers/lxd/lxc.py", line 329, in exec return runner(final_cmd, **kwargs) # pylint: disable=subprocess-run-check File "/snap/snapcraft/8187/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['lxc', '--project', 'snapcraft', 'exec', 'local:snapcraft-xsv-on-amd64-for-amd64-479080', '--cwd', '/root/project', '--', 'env', 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin', 'SNAPCRAFT_MANAGED_MODE=1', 'snapcraft', 'pack', '--build-for', 'amd64']' returned non-zero exit status 1.

Evaluation history

No evaluation history available.